package com.sinosoft.vaccinetoai.server.business.chatrecord.addchatrecord.controller;

import javax.validation.Valid;

import com.sinosoft.vaccinetoai.server.business.chatrecord.addchatrecord.io.AddChatRecordListIO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import com.sinosoft.vaccinetoai.server.business.chatrecord.addchatrecord.vo.AddChatRecordVO;
import com.sinosoft.vaccinetoai.server.business.chatrecord.addchatrecord.service.IAddChatRecordService;

/**
 * @ClassName: AddChatRecordController
 * @ClassNameExplain: 
 * @Description: 新增聊天记录接口
 * @author xiazhihao
 * @date 2023年12月18日 21:49
 */
@RestController("AddChatRecordController")
@RequestMapping("/chatRecord")
public class AddChatRecordController {
	
	@Autowired
	@Qualifier("AddChatRecordService")
	IAddChatRecordService addChatRecordService;
	
	/**
	 * @Title: addChatRecord
	 * @TitleExplain: 
	 * @Description: 新增聊天记录接口方法
	 * @param addChatRecordListIO 入参
	 * @return AddChatRecordVO 返参
	 * @version 1.0.3
	 * @author xiazhihao
	 */
	@PostMapping("/add")
	public AddChatRecordVO addChatRecord(@Valid @RequestBody AddChatRecordListIO addChatRecordListIO) throws Exception {
		return addChatRecordService.addChatRecord(addChatRecordListIO);
	}
	
}
